//
//  YXMachinesViewModel.h
//  CreditCard
//
//  Created by 杨旭 on 2017/12/29.
//  Copyright © 2017年 杨旭. All rights reserved.
//

#import "BaseViewModel.h"
@class YXMachinesModel;
@interface YXMachinesViewModel : BaseViewModel


/**
 查询商品信息

 @param sessionId 编号
 @param mdList 返回成功
 @param failure 返回失败
 */
+(void)getQueryGoodslistById:(NSString *)sessionId ModelList:(void(^)(NSArray *array))mdList Failure:(void(^)(NSError *error))failure;


/**
 添加订单

 @param sessionId 编号
 @param goods 商品信息 封装格式{goodsId:””,num:””} goodsId:商品Id num：数量
 @param totalPrice 商品总价格
 @param ordersTypes 0
 @param mdList 返回成功
 @param failure 返回失败
 */
+(void)getQueryAddOrderById:(NSString *)sessionId Goods:(NSString *)goods TotalPrice:(NSString *)totalPrice OrdersTypes:(NSString *)ordersTypes ModelList:(void(^)(NSArray *array))mdList Failure:(void(^)(NSError *error))failure;

@end
